/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * AbstracePageResult
 *
 * @auther ebert_chan
 */
@ApiModel
public abstract class AbstracePageResult<T> extends BaseDTO {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "每页显示记录数，默认10条", required = true)
    private int pageSize;

    @ApiModelProperty(value = "结果集列表")
    private List<T> result;

    // getter and setter

    public List<T> getResult() {
        return result;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }

}
